package com.dycx.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dycx.common.dto.handler.StringListTypeHandler;
import com.dycx.common.entity.CommonDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "system_permission", autoResultMap = true)
public class PermissionDO extends CommonDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Integer id;

    /**
     * 父id
     */
    private Integer parentId;

    /**
     * 权限ID
     */
    private String permissionId;

    /**
     * 权限标题
     */
    private String title;

    /**
     * 路由
     */
    @TableField(typeHandler = StringListTypeHandler.class)
    private List<String> router;

    private Integer sort;

    private Boolean status;


}
